package com.pansoft.openplanet.bean;

import java.util.List;

/**
 * 我的资源父对象
 */
public class BoxParentBean {

    private String count;
    private String name;
    private Object icon;

    private String type;
    private List<BoxResourceBean> resourceBeanList;

    private BoxParentBean(Builder builder) {
        setCount(builder.count);
        setName(builder.name);
        setIcon(builder.icon);
        setType(builder.type);
        setResourceBeanList(builder.resourceBeanList);
    }

    public String getCount() {
        return count;
    }

    public BoxParentBean setCount(String count) {
        this.count = count;
        return this;
    }

    public String getName() {
        return name;
    }

    public BoxParentBean setName(String name) {
        this.name = name;
        return this;
    }

    public Object getIcon() {
        return icon;
    }

    public BoxParentBean setIcon(Object icon) {
        this.icon = icon;
        return this;
    }

    public String getType() {
        return type;
    }

    public BoxParentBean setType(String type) {
        this.type = type;
        return this;
    }

    public List<BoxResourceBean> getResourceBeanList() {
        return resourceBeanList;
    }

    public BoxParentBean setResourceBeanList(List<BoxResourceBean> resourceBeanList) {
        this.resourceBeanList = resourceBeanList;
        return this;
    }


    public static final class Builder {
        private String count;
        private String name;
        private Object icon;
        private String type;
        private List<BoxResourceBean> resourceBeanList;

        public Builder() {
        }

        public Builder count(String val) {
            count = val;
            return this;
        }

        public Builder name(String val) {
            name = val;
            return this;
        }

        public Builder icon(Object val) {
            icon = val;
            return this;
        }

        public Builder type(String val) {
            type = val;
            return this;
        }

        public Builder resourceBeanList(List<BoxResourceBean> val) {
            resourceBeanList = val;
            return this;
        }

        public BoxParentBean build() {
            return new BoxParentBean(this);
        }
    }
}
